/**
 * 
 */
package com.virxue.baseweb.vo;

import java.util.Date;
import com.virxue.baseweb.po.ChatRecordPo;

/**
 * @ClassName ChatRecordPo
 * @Description TODO
 *
 * @author sunhaojie 3113751575@qq.com
 * @date 2015年11月3日 下午9:22:51
 */
public class ChatRecordVo {
    private int id;
    private Date createTime;
    private Date updateTime;
    private int version;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 聊天内容
     */
    private String content;

    public ChatRecordVo(ChatRecordPo chatRecordPo) {
        this.id = chatRecordPo.getId();
        this.version = chatRecordPo.getVersion();
        this.createTime = chatRecordPo.getCreateTime();
        this.updateTime = chatRecordPo.getUpdateTime();
        this.userName = chatRecordPo.getUserName();
        this.content = chatRecordPo.getContent();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
